﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using SchoolLibrary.DataBase.DAO.Helper;
using SchoolLibrary.Entity;

namespace SchoolLibrary.DataBase.Builder
{
    public abstract class AbstractEntityBuilder
    {    
        public abstract Identity Build(DataRow row);

        protected virtual void BuildEntity(Identity entity, DataRow row)
        {
            entity.Id = Int32.Parse(row[Identity.ID_COLUMN_NAME].ToString());
        }
    }
}
